//
//  HHMoneyBaseModel.m
//  HHBroker
//
//  Created by He Wei on 10/19/15.
//  Copyright © 2015 harry. All rights reserved.
//

#import "HHMoneyBaseModel.h"

@implementation HHMoneyBaseModel

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.Id = value;
    } else if ([key isEqualToString:@"type"]) {
        if (value) {
            if ([value respondsToSelector:@selector(integerValue)]) {
            self.type = [value integerValue];
            }
        }
        
    }  else {
        [super setValue:value forKey:key];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{

}

@end
